﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using JuegoImagenes.Models;
using JuegoImagenes.Repository;

namespace JuegoImagenes.Controllers
{    
    public class HomeController : Controller
    {        
        private AdminRepository adminRepository = new AdminRepository();

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            return View();
        }           

        public ActionResult Ranking()
        {          
            ViewBag.listaDePerfiles = adminRepository.GetAllPerfiles();
            ViewBag.listaDePerfiles.Sort();
            ViewBag.contadorPuestos = 1;
            int i = 1;
            ViewBag.I=i;
            return View();
        }
    }
}
